﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SingleMode
{ 
    // 单线程 SIngleTon实现
    public class  SingleThread_Singleton 
    {
        private static SingleThread_Singleton instance = null;
        private SingleThread_Singleton() { }
        public static SingleThread_Singleton Insatnce
        {
            get
            {
                if (instance == null)
                {
                    instance = new SingleThread_Singleton();
                }
                return instance;
            }

        }
        
    }
}
